home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / sys / RCS / resource.h,v < prev    next >
Encoding:
C/C++ Source or Header  |  1989-07-14  |  2.3 KB  |  125 lines

  1. head     1.3;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.3
  10. date     89.07.14.09.15.27;  author rab;  state Exp;
  11. branches ;
  12. next     1.2;
  13.  
  14. 1.2
  15. date     88.06.29.14.48.08;  author ouster;  state Exp;
  16. branches ;
  17. next     1.1;
  18.  
  19. 1.1
  20. date     88.06.21.16.12.54;  author ouster;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @@
  27.  
  28.  
  29. 1.3
  30. log
  31. @*** empty log message ***
  32. @
  33. text
  34. @/*
  35.  * Copyright (c) 1982, 1986 Regents of the University of California.
  36.  * All rights reserved.  The Berkeley software License Agreement
  37.  * specifies the terms and conditions for redistribution.
  38.  *
  39.  *    @@(#)resource.h    7.1 (Berkeley) 6/4/86
  40.  */
  41.  
  42. #ifndef _RESOURCE
  43. #define _RESOURCE
  44.  
  45. /*
  46.  * Process priority specifications to get/setpriority.
  47.  */
  48. #define    PRIO_MIN    -20
  49. #define    PRIO_MAX    20
  50.  
  51. #define    PRIO_PROCESS    0
  52. #define    PRIO_PGRP    1
  53. #define    PRIO_USER    2
  54.  
  55. /*
  56.  * Resource utilization information.
  57.  */
  58.  
  59. #define    RUSAGE_SELF    0
  60. #define    RUSAGE_CHILDREN    -1
  61.  
  62. struct    rusage {
  63.     struct timeval ru_utime;    /* user time used */
  64.     struct timeval ru_stime;    /* system time used */
  65.     long    ru_maxrss;
  66. #define    ru_first    ru_ixrss
  67.     long    ru_ixrss;        /* integral shared memory size */
  68.     long    ru_idrss;        /* integral unshared data " */
  69.     long    ru_isrss;        /* integral unshared stack " */
  70.     long    ru_minflt;        /* page reclaims */
  71.     long    ru_majflt;        /* page faults */
  72.     long    ru_nswap;        /* swaps */
  73.     long    ru_inblock;        /* block input operations */
  74.     long    ru_oublock;        /* block output operations */
  75.     long    ru_msgsnd;        /* messages sent */
  76.     long    ru_msgrcv;        /* messages received */
  77.     long    ru_nsignals;        /* signals received */
  78.     long    ru_nvcsw;        /* voluntary context switches */
  79.     long    ru_nivcsw;        /* involuntary " */
  80. #define    ru_last        ru_nivcsw
  81. };
  82.  
  83. /*
  84.  * Resource limits
  85.  */
  86. #define    RLIMIT_CPU    0        /* cpu time in milliseconds */
  87. #define    RLIMIT_FSIZE    1        /* maximum file size */
  88. #define    RLIMIT_DATA    2        /* data size */
  89. #define    RLIMIT_STACK    3        /* stack size */
  90. #define    RLIMIT_CORE    4        /* core file size */
  91. #define    RLIMIT_RSS    5        /* resident set size */
  92.  
  93. #define    RLIM_NLIMITS    6        /* number of resource limits */
  94.  
  95. #define    RLIM_INFINITY    0x7fffffff
  96.  
  97. struct rlimit {
  98.     int    rlim_cur;        /* current (soft) limit */
  99.     int    rlim_max;        /* maximum value for rlim_cur */
  100. };
  101.  
  102. #endif /* _RESOURCE */
  103. @
  104.  
  105.  
  106. 1.2
  107. log
  108. @Add ifdefs to prevent files from being included multiple times.
  109. @
  110. text
  111. @d69 1
  112. a69 1
  113. #endif _RESOURCE
  114. @
  115.  
  116.  
  117. 1.1
  118. log
  119. @Initial revision
  120. @
  121. text
  122. @d9 3
  123. d68 2
  124. @
  125.